/**
 * FileFind - ftp/shares indexing and search php engine
 * Module: agent-java
 * Description: Agent written in java language
 * Copyright (c) 2003-2010 Rage Steel, www.gt2.ru
 * ----------------------------------------------
 * $Id$
 */
package ru.ffind.agent.db;

import java.util.Date;

import ru.ffind.common.model.AbstractEntry;

/**
 *
 * Base implementation for database entries
 *
 * @author Rage Steel
 * @version $Id$
 *
 */
public abstract class AbstractDbEntry extends AbstractEntry {

	private String name;
	private Date datetime;
	private Date appDate;
	
	protected AbstractDbEntry(String name, Date datetime, Date appDate) {
		super();
		this.name = name;
		this.datetime = datetime;
		this.appDate = appDate;
	}
	
	/* (non-Javadoc)
	 * @see ru.ffind.agent.model.Entry#getDatetime()
	 */
	@Override
	public Date getDatetime() {
		return datetime;
	}

	/* (non-Javadoc)
	 * @see ru.ffind.agent.model.Entry#getName()
	 */
	@Override
	public String getName() {
		return name;
	}
	
	public Date getAppDate() {
		return appDate;
	}

}
